reversing a number with a program of c